import http from '../utils/request'
// import request from '../utils/request'

//创建函数,请求数据
// export const getdata = () =>{
//     //返回一个promis对象
//     return http.get('/Login/getdata') //()中写后端提供url和配置
// }


//访问后端登录接口
export const getuser = (data) => {
    return http.post('/user/login', data)
}//userName,password


//访问后端注册接口
export const getregister = (data) => {
    return http.post('/user/register', data)
}//userName,password



//首页退出登录
export const returnlogin = (data) => {
    return http.post('/user/logout', data)
}


//重置密码
export const forget = (data) => {
    return http.post('/user/reset', data)
}

// axios.post('/user/logout',{
// 	"params":value
// },{
// 	headers:{
// 		'authorization':Token
// 	}
// }).then((res)=>{})